//
//  MutView.h
//  Select
//
//  Created by dihuijun on 17/3/17.
//  Copyright © 2017年 Cycle. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^chooseBlock)(NSString *content,NSMutableArray *chooseArray);

@interface MutView : UIView <UITableViewDelegate,UITableViewDataSource>
/**   tableView   */
@property (nonatomic, strong) UITableView *tableView;
/**   datasource   */
@property (nonatomic, strong) NSMutableArray *datasource;

/** 选中的数组 */
@property (nonatomic, strong) NSMutableArray *chooseArray;

/**   是否被全部选中   */
@property (nonatomic, assign) BOOL isAllSelected;

/**   判断是选择了cell还是选择了header的全选   */
@property (nonatomic, assign) BOOL isAllSelectSwitch;


/**   选择了   */
@property (nonatomic,copy) chooseBlock block;


/** 有头部的初始化*/
+ (MutView *)sharedMutViewWithFrame:(CGRect)frame title:(NSString *)title;
/** 无头的初始化*/
+ (instancetype)sharedViewWithFrame:(CGRect)frame;


/** 刷新*/
- (void)reloadData;
@end
